package com.sumover.POJO;

import java.io.Serializable;

public class GameDetail implements Serializable {
    private Integer gid;

    private String innerhtml;

    private static final long serialVersionUID = 1L;

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getInnerhtml() {
        return innerhtml;
    }

    public void setInnerhtml(String innerhtml) {
        this.innerhtml = innerhtml == null ? null : innerhtml.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GameDetail other = (GameDetail) that;
        return (this.getGid() == null ? other.getGid() == null : this.getGid().equals(other.getGid()))
            && (this.getInnerhtml() == null ? other.getInnerhtml() == null : this.getInnerhtml().equals(other.getInnerhtml()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGid() == null) ? 0 : getGid().hashCode());
        result = prime * result + ((getInnerhtml() == null) ? 0 : getInnerhtml().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", gid=").append(gid);
        sb.append(", innerhtml=").append(innerhtml);
        sb.append("]");
        return sb.toString();
    }
}